import 'dart:ui';

import 'package:camera/camera.dart';
import 'package:fish_redux/fish_redux.dart';
import 'package:multi_image_picker/multi_image_picker.dart';

import '../global_store/state.dart';

class CameraState implements GlobalBaseState, Cloneable<CameraState> {
  CameraDescription camera;
  CameraController controller;
  String tmpPhoto;
  List<Asset> selected = [];

  @override
  CameraState clone() {
    return CameraState()
      ..camera = camera
      ..controller = controller
      ..tmpPhoto = tmpPhoto
      ..selected = selected;
  }

  @override
  Color themeColor;

  @override
  Map<String, dynamic> userInfo;
}

CameraState initState(Map<String, dynamic> args) {
  return CameraState();
}
